import math


def gcd(x, y):
    if x == y:
        return False
    elif x > y:
        tm = x
        x = y
        y = tm
    for i in range(2, int(math.sqrt(x)) + 2):
        if x % i == 0 and y % i == 0:
            return False
    return True


def sqrt_gcd(x):
    num = math.sqrt(x)
    if int(num) == num:
        return False
    return True


if __name__ == '__main__':
    fi = open('data', 'w')
    to = int(input('to>'))

    fi.write(str(float(0)) + ':0\n')
    for i in range(1, to):
        # print(str(i))
        fi.write(str(float(i)) + ':' + str(i) + '\n')
        for j in range(2, to):
            if gcd(i, j):
                num = float(i) / float(j)
                fi.write(str(num) + ':' + str(i) + '/' + str(j) + '\n')
            if sqrt_gcd(j):
                num = float(i) * math.sqrt(j)
                fi.write(str(num) + ':' + str(i) + '/' + str(j) + '\n')

    fi.write('-1.0:end\n')
    fi.close()
